package cn.edu.zafu.bigdata.bd121.cube;

/**
 * 测试长方体类
 *
 * @author 202211090121
 */
public class TestCube {

    public static void main(String[] args) {
        // 创建长方体
        Cube cube1 = new Cube(5, 10, 15);
        Cube cube2 = new Cube(5, 10, 15);
        Cube cube3 = new Cube(5, 10, 20);
        // 比较长方体 只有第一个为true
        System.out.println(cube1.equals(cube2));
        System.out.println(cube1.equals(cube3));
        System.out.println(cube1.equals(null));
    }
}
